const modules = import.meta.glob('./*.config.js',  {
    import: 'default',
    eager: true,
});
export default function(name, dicts) {
    const res = modules[`./${name}.config.js`];
    res.formLayout.forEach(item => {
        if (item.dictType) {
            item.options = dicts[item.dictType];
        }
    });
    return res;
}




